feat(core): Add enableTruncation option to Google GenAI integration#20184
feat(core): Add enableTruncation option to Google GenAI integration#20184nicohrubec merged 5 commits intodevelopfrom
Conversation
This PR adds an `enableTruncation` option to the Google GenAI integration that allows users to disable input message truncation. It defaults to `true` to preserve existing behavior. Also refactors the truncation to use the shared `getTruncatedJsonString`/`getJsonString` utilities instead of calling `truncateGenAiMessages` directly. Closes: #20137
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Core
Other
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 13b5958. Configure here.
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
b1f6760 to
20c2f15
Compare

This PR adds an
enableTruncationoption to the Google GenAI integration thatallows users to disable input message truncation. It defaults to
trueto preserve existing behavior.
Also refactors the truncation to use the shared
getTruncatedJsonString/getJsonStringutilities instead of calling
truncateGenAiMessagesdirectly.Closes: #20137